import java.util.Scanner;

public class Demo {
	//定义一个数组的长度10 ，通过从控制台输入数据存储数组中
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[10];
		for (int i = 0; i < array.length; i++) {
			System.out.println("请输入第" + (i + 1) + "个元素" );
			array[i] = sc.nextInt();
		}
		
		//遍历输出
		for (int i = 0; i < array.length; i++) {
			System.out.println(array[i]);
		}
	}

}
